package com.twu.biblioteca;

public class BibliotecaApp {

    public static void main(String[] args) throws Exception {
        Catalogue catalogue = new Catalogue();
        User first_user = new User("test_user","lol");
        User second_user  = new User("test_user2,","lolz");
        MenuUtil alert = new MenuUtil();

        print(alert.getWelcomeMessage());
        print(alert.showMenuOptions());

        catalogue.addBook(new Book("Things Fall Apart","Chinua Achebe","Political", 896756432, 1));
        catalogue.addBook(new Book("Tale Of Two Cities", "Charles Dickens" ,"Adventure", 54346542, 1));
        catalogue.addBook(new Book("Soul On Ice", "Eldridge Cleaver", "Political", 23124356, 1));

        catalogue.addMovie(new Movie("They",2002,"Robert Harmon"));
        catalogue.addMovie(new Movie("Transformers: Dark Of The Moon", 2011 ,"Michael Bay"));



        new MenuListener(catalogue,alert).notifyListener(alert.getUserOption());
    }

    public static void print(String print_item){
        System.out.println(print_item);
    }
}
